package ooDay03;

public class AnonInnerClassDemo {
    public static void main(String[] args) {
        //lamble
        Inter o1 = () -> System.out.println("Inter");
        o1.show();
        InterInter o2 = new InterInter(){
            public void show(){
                System.out.println("InterInter");
            }
            public void show2(){
                System.out.println("InterInter2");
            }
        };
        o2.show();
        o2.show2();

    }
}

interface InterInter{
    void show();
    void show2();
}
interface Inter{
    void show();
}
